package com.jichaoyun.config;


import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name ="web-serve", url = "http://localhost:9506")
public interface WebServiceClient {
    @PostMapping("/sys/charge/confirmCharge")
    String agreeCharge(@RequestParam("id") Integer id,          // 必须指定参数名
                       @RequestParam("username") String username,
                       @RequestParam("password") String password);

    @PostMapping("/sys/charge/cancelCharge")
    String disAgreeCharge(@RequestParam("id") Integer id,          // 必须指定参数名
                          @RequestParam("username") String username,
                          @RequestParam("password") String password,@RequestParam("remark") String remark);
    @GetMapping("/sys/charge/getChargeFlowList")
    String getChargeFlowList(@RequestParam("pageNo") Integer pageNo);
}
